FROM node:18.17.0-alpine AS base
WORKDIR /app
COPY . .
RUN npm install --save
RUN npm run build
EXPOSE 3000
# 一下两句其实一样
#CMD ["node_modules/.bin/next", "start"]
CMD ["npm","run","start"]